﻿using Basic.FlowRemoteModel.Flow;
using Basic.FlowService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowService.RpcEvent
{
    internal class FlowCopyEvent : IRpcApiService
    {
        private readonly IFlowCopyService _Service;

        public FlowCopyEvent ( IFlowCopyService service )
        {
            this._Service = service;
        }
        public long CopyFlow ( CopyFlow arg )
        {
            return this._Service.Copy(arg.Arg, arg.EmpId);
        }
    }
}
